<?php include('includes/start_session.php') ?>
<?php include('includes/user_register.php') ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
	<title>e-class register</title>
	<link href="styles/site.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<?php include('includes/header.php') ?>
	<div id="content" class="content_padding">
            <form action="register.php?action=register" method="post">
                <table class="big_table">
                    <tr>
                        <td colspan="2">
                            <h2>Δημιουργία λογαριασμού</h2>
                        </td>
                    </tr>
                    <?php
                    	if($error != '')
                    		echo '<tr><td colspan=\"2\"><span class="error">' . $error . '</span></td></tr>';
                    ?>
                    <tr>
                        <td>
                            <span>Όνομα:</span>
                        </td>
                        <td>
                            <input type="text" name="firstname" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Επώνυμο:</span>
                        </td>
                        <td>
                            <input type="text" name="lastname" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Όνομα χρήστη:</span>
                        </td>
                        <td>
                            <input type="text" name="username" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Συνθηματικό:</span>
                        </td>
                        <td>
                            <input type="password" name="password" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Ηλεκτρονική διεύθυνση:</span>
                        </td>
                        <td>
                            <input type="text" name="email" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Είδος χρήστη:</span>
                        </td>
                        <td>
                            <select name="kind">
                                <option>Φοιτητής</option>
                                <option>Καθηγητής</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="right_align">
                            <input type="submit" value="Δημιουργία" />
                        </td>
                    </tr>
                </table>
            </form>
        </div>
	<?php include('includes/footer.php') ?>
</body>
</html>
